package cn.edu.ctbu.kcsj.service;

import cn.edu.ctbu.kcsj.domain.Score;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ScoreService {
    List<Score> findAll();

    /**
     * 只分页的查询
     * @param pageable
     * @return
     */
    Page<Score> findAll(Pageable pageable);

    /**
     * 分页，带过滤的查询
     * @param score
     * @param pageable
     * @return
     */
    Page<Score>findAll(Example<Score> score, Pageable pageable);
    Score getBySid(Integer sid);
    Score insert(Score score);
    Score update(Score score);

    void delete(Integer sid);
}
